﻿<%@ Page Language="vb" EnableEventValidation="false" EnableViewState="false" Title="Tags &lsaquo; Meo Tom's Blog" MasterPageFile="Admin.Master" AutoEventWireup="false" CodeBehind="ArticleTag.aspx.vb" Inherits="MeoTom.Web.Blog.ArticleTag" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ctph" Runat="Server">
    <div style="float:left;width:100%;">
        <div id="iconArticle" class="icon32"><br /></div>
        <h2>Tags</h2>
    </div>
    
    <div class="form-wrap" style="float:left;width:30%;">
        <div style="display:none;" class="lblMsg" runat="server" id="lblError">abc</div>
        <h3 style="color:#000000;margin:10px 0px 10px 0px;">Popular Tags</h3>
        <div id="popularTags" runat="server" class="tagCloud"></div>
        <%--<h3 style="color:#000000;margin:70px 0px 10px 0px;">Add a New Tag</h3>
        <div class="form-field">
            <label>Tag name</label>
            <asp:TextBox ID="txtTagName" runat="server"></asp:TextBox>
        </div>
        <asp:Button ID="btnCreate" CssClass="button" runat="server" Text="Add Tag" />--%>
    </div>
    
    <div class="form-wrap" style="float:left;width:66%;">
        <select name="selectedAction0">
            <option value="0">Action</option>
            <option value="2">-- Delete</option>
        </select>
        <asp:Button ID="btnApply" CssClass="button" runat="server" Width="60" Text="Apply" />
        <asp:GridView ID="grvListArticleTag" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
            DataKeyNames="TagID" PageSize="15" EmptyDataText="No tag found" CssClass="tblMain" style="border-collapse:separate;" border="0">
            <Columns>
                <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="&lt;input type=&quot;checkbox&quot; onfocus=&quot;this.blur();&quot; name=&quot;cboCheck&quot; onclick=&quot;Util.CheckAll(document.aspnetForm.cboCheck);&quot; />">
                    <ItemTemplate>
                        <input type="checkbox" onfocus="this.blur();" name="cboCheck" value="<%#Eval("TagID")%>" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Name" HeaderStyle-Width="50%">
                    <ItemTemplate>
                        <div onmouseover="javascript:Util.DisplayPostAction('PostAction_<%#Eval("TagID")%>');" onmouseout="javascript:Util.HidePostAction('PostAction_<%#Eval("TagID")%>');" style="height:32px;">
                            <a class="lnkArticle" href="/mt-inside/TagUpdate.aspx?action=Edit&TagID=<%#Eval("TagID")%>"><%#Eval("TagName")%></a>
                            <div class="PostAction" style="display:none;" id="PostAction_<%#Eval("TagID")%>"><a href="/mt-inside/TagUpdate.aspx?action=Edit&TagID=<%#Eval("TagID")%>" title="Edit this Post">Edit</a>&nbsp;|&nbsp;<a href="/mt-inside/TagUpdate.aspx?action=Delete&TagID=<%#Eval("TagID")%>" title="Delete this tag" onclick="javascript:return Util.ConfirmDeleteTag('<%# Eval("TagName") %>');">Delete</a></div>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Description">
                    <ItemTemplate>&nbsp;</ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="TotalTag" HeaderText="Posts" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
            </Columns>
            <HeaderStyle CssClass="header" />
            <PagerSettings Mode="NumericFirstLast" />
            <PagerStyle CssClass="footer" Font-Size="14" />
        </asp:GridView>
        <select name="selectedAction1">
            <option value="0">Action</option>
            <option value="2">-- Delete</option>
        </select>
        <asp:Button ID="btnApply2" CssClass="button" runat="server" Width="60" Text="Apply" />
    </div>    
    <script language="javascript" type="text/javascript">
        Menus.DisplaySubMenu('menu-1-2');
        Menus.ChangeSelectedMenu('menu-1-2');
    </script>    
</asp:Content>
